package javango.contrib.admin;

import javango.api.UrlFactory;
import javango.contrib.admin.views.Main;
import javango.contrib.jquery.JqueryUrls;

public class Urls extends javango.api.Urls {
	
	public Urls() {
        setUrlPatterns(
            UrlFactory.regUrl("^$", Main.class, "index"),
            UrlFactory.subappUrl("^jquery/", JqueryUrls.class),
            UrlFactory.regUrl("^resetdb/$", Main.class, "resetdb"),
            UrlFactory.regUrl("^([^/]+)/search/$", Main.class, "search"),
            UrlFactory.regUrl("^([^/]+)/$", Main.class, "changeList"),
            UrlFactory.regUrl("^([^/]+)/add/$", Main.class, "add"),
            UrlFactory.regUrl("^([^/]+)/(.+)/delete/$", Main.class, "delete"),
            UrlFactory.regUrl("^([^/]+)/(.+)/$", Main.class, "change")
        );
	}
	

}
